package com.example.springeureka;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

@EnableEurekaServer
@SpringBootApplication
public class SpringEurekaApplication {

    public static void main(String[] args) {
        //SpringApplication.run(SpringEurekaApplication.class, args);
        new SpringApplicationBuilder(SpringEurekaApplication.class).web(WebApplicationType.SERVLET).run(args);
    }

}
